package com.zg.common.core.dao.scf.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zg.common.core.dao.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("SCF_EN_LEVEL")
@ApiModel(value = "企业级别", description = "企业级别")
public class EnLevel extends BaseEntity {

    /**
     * 企业类型
     */
    @NotBlank(message = "企业类型不能为空")
    @ApiModelProperty(value = "企业类型")
    private String enType;

    /**
     * 级别名称
     */
    @NotBlank(message = "级别名称不能为空")
    @ApiModelProperty(value = "级别名称")
    private String levelName;

    /**
     * 分数范围（大于等于）
     */
    @NotNull(message = "分数范围不能为空")
    @ApiModelProperty(value = "分数范围")
    private Integer scoreRange;

    /**
     * 顺序
     */
    @NotNull(message = "顺序不能为空")
    @ApiModelProperty(value = "顺序")
    private Integer sort;

    /**
     * 账户新增权限
     */
    @ApiModelProperty(value = "账户新增权限")
    private Integer accountCreation =0;


    /**
     * 下游企业权限
     */
    @ApiModelProperty(value = "下游企业权限")
    private Integer downstreamEnterprise =0;

    /**
     * 授信申请权限
     */
    @ApiModelProperty(value = "授信申请权限")
    private Integer creditApplication =0;

    /**
     * 报表权限
     */
    @ApiModelProperty(value = "报表权限")
    private Integer reportAccess =0;
}
